//
//  JMProjectManager.h
//  JMBaseProject
//
//  Created by liuny on 2018/7/14.
//  Copyright © 2018年 liuny. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "JMLoginUserModel.h"

typedef enum:NSInteger{
    Review_State_Test = 1,//测试环境
    Review_State_Dev,//开发环境
    Review_State_Rev_Apple,//审核中环境
    Review_State_Rev_User,//审核中正常用户环境
    Review_State_Dist,//生产环境
}Review_State;

@class JMAppConfig;

@interface JMProjectManager : NSObject
singleton_interface(JMProjectManager)
@property (nonatomic, strong) JMLoginUserModel *loginUser;
@property (nonatomic, strong) JMAppConfig *appConfig;
@property (nonatomic, assign) NSInteger tabbarPreSelIndex;
+(BOOL)isLogin;
-(void)loadRootVC;
-(void)showMainViewController;
-(void)clearLiveDate;
-(void)versionCheck:(BOOL)showAlert;
@end



@interface JMAppConfig : NSObject

///app被杀掉前的时间
@property (nonatomic, strong) NSString *lastTimeStemp;
///存缓存，不存磁盘
@property (nonatomic, strong) NSString *uuidString;

///adjust生成的设备唯一号
@property (nonatomic, strong) NSString *adid;
///adjust生成的广告标识符
@property (nonatomic, strong) NSString *idfa;
///ios系统idfv
@property (nonatomic, strong) NSString *idfv;

@property (nonatomic, strong) NSString *startTime;
@property (nonatomic, assign) NSInteger backCount;

@property (nonatomic, strong) NSString *endTime;

@property (nonatomic, assign) BOOL isfront;//ktp认证 正反面

- (void)save ;

- (void)clear ;
@end



